package com.sad.jetpack.v1.datamodel.api;

public interface IDataModelProduceFutureObserver<RP> {
    String observerId();
    default IDataModelRequest onDataRequestNotStarted(IDataModelRequest request){return request;};
    default void onDataRequestProcessing(IDataModelRequest request){};
    default void onDataRequestException(IDataModelRequest request, Throwable e){};
    default void onDataRequestCancelled(IDataModelRequest request){};
    void onDataResponseChanged(IDataModelResponse<RP> response);

}
